package edu.friday.service;

import edu.friday.common.result.TableDataInfo;
import edu.friday.controller.SysUserController;
import edu.friday.model.SysUser;
import edu.friday.model.vo.SysUserVo;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface SysUserService {
    List<SysUser> selectUserList();
    public TableDataInfo selectUserByPage(SysUserVo sysUserVo, Pageable pageable);

    String checkUserNameUnique(String userName);

    String checkUserPhoneUnique(SysUserVo userVo);

    String checkEmailUnique(SysUserVo userVo);

    int insertUser(SysUserVo user);

    int deleteUserByIds(Long[] userIds);

    int realDeleteUserByIds( Long[] userIds);

    int updateUser(SysUserVo user);

    SysUser selectUserById(Long userId);

    SysUser selectUserByUserName(String username);
}
